import type { IOptionType } from './type';
import { IOperationType, IVisibleType } from './type';

export const operationList: IOptionType[] = [
  { label: '编辑', value: IOperationType.EDIT },
  { label: '删除', value: IOperationType.DETELE },
];

export const modalTitleMap: Record<string, string> = {
  [IOperationType.EDIT]: '编辑',
  [IOperationType.ADD]: '新增',
};

export const visibleList: IOptionType[] = [
  { label: '显示', value: IVisibleType.SHOW },
  { label: '不显示', value: IVisibleType.HIDDEN },
];

export const contractSourceHintText: string =
  '合约数据来源大体分为平台获取和用户人工维护两种，前者不支持编辑删除操作。';

export const positionsCalculateHintText: string =
  '由于数据口径与合约状态差异，部分合约可能不参与用户仓位计算，本字段用于区分“参与”及“不参与”计算仓位的合约。用户维护的合约可进行自由编辑。';

export const SAME_DATE = '日曲线';
